package cn.edu.gzgs;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

@SpringBootApplication
@MapperScan("cn.edu.gzgs.mapper")
@EnableAsync
public class WorkloadManagementApplication {
    private static final Logger log = LoggerFactory.getLogger(WorkloadManagementApplication.class);
    public static void main(String[] args) {
        log.info("专任教师工作量管理系统...");
        SpringApplication.run(WorkloadManagementApplication.class, args);
        log.info("专任教师工作量管理系统！");
    }

    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
